import Vue from 'vue'
import Router from 'vue-router'

// 引入home组件
import Home from '@/components/home/home'

// 使用vue-router插件,相当于vue.prototype.$router = Router;
Vue.use(Router)

export default new Router({
  routes: [
    //匹配路由规则
    {
      path: '/index',
      name: 'index',
      component: Home
    }
  ]
})
